/*
 * 程序改错-3（4分）
 */

#include <stdio.h>

int main() {
	setbuf(stdout, NULL);

	int x1 = 0, x2 = 0, get_return;

	printf("Input x1, x2:\n");
	get_return = scanf("%d,%d", &x1, &x2);

	while ((get_return != 2) || (x1 * x2 >= 0)) {
		while (getchar() != '\n');
		printf("Input x1, x2:\n");
		get_return = scanf("%d,%d", &x1, &x2);
	}

	printf("x1=%d,x2=%d\n", x1, x2);

	return 0;
}
